Spaces:
Runtime error
Runtime error
Ramesh-vani
commited on
Commit
·
9969cd4
1
Parent(s):
b08fe9a
Update app.py
Browse files
app.py
CHANGED
@@ -152,26 +152,33 @@ def run_code(command):
|
|
152 |
|
153 |
return result
|
154 |
|
155 |
-
gradio_interface1 = gradio.Interface(
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
)
|
164 |
|
165 |
-
gradio_interface2 = gradio.Interface(
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
|
170 |
-
|
171 |
-
|
172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
)
|
174 |
-
gradio_interface1.launch()
|
175 |
-
gradio_interface2.launch()
|
176 |
|
|
|
177 |
|
|
|
152 |
|
153 |
return result
|
154 |
|
155 |
+
# gradio_interface1 = gradio.Interface(
|
156 |
+
# fn=run_code,
|
157 |
+
# inputs="text",
|
158 |
+
# outputs="text",
|
159 |
|
160 |
+
# title="REST API ",
|
161 |
+
# description="This is an AI powered languages API ",
|
162 |
+
# article=""
|
163 |
+
# )
|
164 |
|
165 |
+
# gradio_interface2 = gradio.Interface(
|
166 |
+
# fn=run_command,
|
167 |
+
# inputs="text",
|
168 |
+
# outputs="text",
|
169 |
|
170 |
+
# title="REST API ",
|
171 |
+
# description="This is an AI powered command REST API ",
|
172 |
+
# article=""
|
173 |
+
# )
|
174 |
+
# gradio_interface1.launch()
|
175 |
+
# gradio_interface2.launch()
|
176 |
+
|
177 |
+
iface = gradio.Interface(
|
178 |
+
fn=[run_code, run_command], # List of functions for each API
|
179 |
+
inputs=["text", "text"], # List of input types for each API
|
180 |
+
outputs=["text", "text"] # List of output types for each API
|
181 |
)
|
|
|
|
|
182 |
|
183 |
+
iface.launch()
|
184 |
|