Spaces:
Runtime error
Runtime error
Luis Oala
commited on
Commit
·
2ea64bd
1
Parent(s):
40aeecc
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,3 @@
|
|
1 |
-
#TODO: remove options for custom input -> only default "trustworthy ai"
|
2 |
-
#TODO: excatract from generated-text dict entry
|
3 |
-
#TODO: add credits
|
4 |
-
#TODO: add flagging option
|
5 |
#TODO: integrate into markdown
|
6 |
import gradio as gr
|
7 |
from gradio import mix
|
@@ -41,7 +37,7 @@ def inference(text, seed):
|
|
41 |
|
42 |
gr.Interface(
|
43 |
inference,
|
44 |
-
[gr.inputs.Radio(choices=["trustworthy artificial intelligence"], value="trustworthy artificial intelligence", label="input", show_label=False), gr.inputs.Slider(minimum=0., maximum=1000
|
45 |
#,gr.inputs.Dropdown(choices=["distilgpt2","gpt2-medium","gpt2-large","gpt2-xl"], type="value", default="gpt2-medium", label="model")],
|
46 |
gr.outputs.Textbox(label="gpt-2 proposal"),
|
47 |
#title=title,
|
|
|
|
|
|
|
|
|
|
|
1 |
#TODO: integrate into markdown
|
2 |
import gradio as gr
|
3 |
from gradio import mix
|
|
|
37 |
|
38 |
gr.Interface(
|
39 |
inference,
|
40 |
+
[gr.inputs.Radio(choices=["trustworthy artificial intelligence"], value="trustworthy artificial intelligence", label="input", show_label=False), gr.inputs.Slider(minimum=0., maximum=1000., value=43.,label="seed")],
|
41 |
#,gr.inputs.Dropdown(choices=["distilgpt2","gpt2-medium","gpt2-large","gpt2-xl"], type="value", default="gpt2-medium", label="model")],
|
42 |
gr.outputs.Textbox(label="gpt-2 proposal"),
|
43 |
#title=title,
|