Alesteba commited on
Commit
901091c
·
1 Parent(s): 4063979

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import tensorflow as tf
3
+ import numpy as np
4
+
5
+ from transformers import AutoModelForSequenceClassification
6
+
7
+ from huggingface_hub import from_pretrained_fastai
8
+ model = from_pretrained_fastai("Alesteba/deep_model_08")
9
+
10
+ def predict(prompt):
11
+ return model.predict(prompt)[0]
12
+
13
+ gr.Interface(fn=predict, inputs="text", outputs="text").launch()