Spaces:
Sleeping
Sleeping
Commit
·
942224b
1
Parent(s):
e58bce0
second commit
Browse files
app.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def greet(name):
|
|
@@ -5,6 +11,7 @@ def greet(name):
|
|
| 5 |
|
| 6 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
iface.launch()
|
|
|
|
| 8 |
print("why")
|
| 9 |
print("s")
|
| 10 |
print("wtf")
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
# Install gradio manually
|
| 5 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", "gradio"])
|
| 6 |
+
|
| 7 |
import gradio as gr
|
| 8 |
|
| 9 |
def greet(name):
|
|
|
|
| 11 |
|
| 12 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 13 |
iface.launch()
|
| 14 |
+
|
| 15 |
print("why")
|
| 16 |
print("s")
|
| 17 |
print("wtf")
|