Spaces:
Runtime error
Runtime error
Commit
·
9915fdd
1
Parent(s):
3739f5a
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
|
|
|
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
iface = gr.Interface(fn=
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
import tensorflow as tf
|
4 |
+
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
5 |
+
|
6 |
+
def output(prompt):
|
7 |
return "Hello " + name + "!!"
|
8 |
|
9 |
+
iface = gr.Interface(fn=output, inputs="text", outputs="text")
|
10 |
iface.launch()
|