Spaces:
Sleeping
Sleeping
Commit
·
0f808c3
1
Parent(s):
25e0ecf
test
Browse files
main.py
CHANGED
|
@@ -23,14 +23,14 @@ def compile(source):
|
|
| 23 |
|
| 24 |
def predict(source):
|
| 25 |
bytes = compile(source)
|
| 26 |
-
return 1.0
|
| 27 |
|
| 28 |
|
| 29 |
def run():
|
| 30 |
demo = gr.Interface(
|
| 31 |
fn=predict,
|
| 32 |
inputs=gr.Textbox(),
|
| 33 |
-
outputs=gr.Number(),
|
| 34 |
)
|
| 35 |
|
| 36 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 23 |
|
| 24 |
def predict(source):
|
| 25 |
bytes = compile(source)
|
| 26 |
+
return bytes, 1.0
|
| 27 |
|
| 28 |
|
| 29 |
def run():
|
| 30 |
demo = gr.Interface(
|
| 31 |
fn=predict,
|
| 32 |
inputs=gr.Textbox(),
|
| 33 |
+
outputs=[gr.Textbox(), gr.Number()],
|
| 34 |
)
|
| 35 |
|
| 36 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|