File size: 345 Bytes
901091c
 
 
 
733aa7e
 
 
 
901091c
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr
import tensorflow as tf
import numpy as np

import os

os.environ['CURL_CA_BUNDLE'] = ''

from huggingface_hub import from_pretrained_fastai
model = from_pretrained_fastai("Alesteba/deep_model_08")

def predict(prompt):
    return model.predict(prompt)[0]
    
gr.Interface(fn=predict, inputs="text", outputs="text").launch()