Spaces:
Running
Running
Commit
·
d8a8ced
1
Parent(s):
26c283d
Add application files
Browse files
app.py
CHANGED
@@ -2,21 +2,16 @@ import gradio as gr
|
|
2 |
import subprocess
|
3 |
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
# def run_command(command):
|
8 |
-
# result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
# output_string, error_string= run_command("pwd")
|
14 |
-
# return "Hello " + output_string + error_string + "!"
|
15 |
|
16 |
-
|
17 |
-
# demo.launch()
|
18 |
-
|
19 |
|
|
|
|
|
|
|
20 |
def greet(name1, name2):
|
21 |
# Storing each input in a variable, you can process or save them as you like
|
22 |
str1 = name1 ## openai
|
@@ -61,3 +56,4 @@ input_boxes = [
|
|
61 |
|
62 |
iface = gr.Interface(fn=greet, inputs=input_boxes, outputs="text")
|
63 |
iface.launch()
|
|
|
|
2 |
import subprocess
|
3 |
|
4 |
|
5 |
+
import gradio as gr
|
|
|
|
|
|
|
6 |
|
7 |
+
def greet(name):
|
8 |
+
return "Hello " + name + "!"
|
|
|
|
|
|
|
9 |
|
10 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
|
|
11 |
|
12 |
+
demo.launch()
|
13 |
+
|
14 |
+
"""
|
15 |
def greet(name1, name2):
|
16 |
# Storing each input in a variable, you can process or save them as you like
|
17 |
str1 = name1 ## openai
|
|
|
56 |
|
57 |
iface = gr.Interface(fn=greet, inputs=input_boxes, outputs="text")
|
58 |
iface.launch()
|
59 |
+
"""
|