Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,11 @@
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
|
| 3 |
import gradio as gr
|
|
|
|
| 4 |
|
| 5 |
-
def greet(text):
|
| 6 |
-
return text
|
| 7 |
-
|
| 8 |
-
with gr.Blocks() as demo:
|
| 9 |
-
input = gr.TextArea()
|
| 10 |
-
output = gr.TextArea()
|
| 11 |
-
gr.Button().click(fn=greet, inputs=input, outputs=output)
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
+
import os
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
+
#space_key = os.environ.get('read_token')
|
| 8 |
+
iface = gr.load(name="beth594/test-inner",
|
| 9 |
+
#hf_token=space_key,
|
| 10 |
+
src='spaces')
|
| 11 |
+
iface.launch(show_api=False)
|