inoki-giskard commited on
Commit
d6b3b9f
1 Parent(s): 88247ef

Init project

Browse files
Files changed (1) hide show
  1. app.py +40 -0
app.py ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+
4
+ theme = gr.themes.Soft(
5
+ primary_hue="green",
6
+ )
7
+
8
+ with gr.Blocks(theme=theme) as iface:
9
+ with gr.Row():
10
+ with gr.Column():
11
+ model_id_input = gr.Textbox(
12
+ label="Hugging Face model id",
13
+ placeholder="cardiffnlp/twitter-roberta-base-sentiment-latest",
14
+ )
15
+
16
+ model_type = gr.Dropdown(
17
+ label="Hugging Face model type",
18
+ choices=[
19
+ ("Auto-detect", 0),
20
+ ("Text Classification", 1),
21
+ ],
22
+ value=0,
23
+ )
24
+
25
+ with gr.Column():
26
+ dataset_id_input = gr.Textbox(
27
+ label="Hugging Face dataset id",
28
+ placeholder="tweet_eval",
29
+ )
30
+
31
+ gr.Dropdown(
32
+ label="Hugging Face dataset subset",
33
+ )
34
+
35
+ gr.Dropdown(
36
+ label="Hugging Face dataset split",
37
+ )
38
+
39
+ iface.queue(max_size=20)
40
+ iface.launch()