Spaces:
Runtime error
Runtime error
seawolf2357
commited on
Commit
•
2f47bc7
1
Parent(s):
05ddbb8
initial commit
Browse files
app.py
CHANGED
@@ -42,6 +42,12 @@ def flip_text(request, page_url, contraseña, temp):
|
|
42 |
return page.text, f"--- An error occurred while processing the request: {e} ---", num_tokens
|
43 |
return page.text, "--- Max number of tokens ---", num_tokens
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
# define the gradio interface
|
46 |
iface = gr.Interface(
|
47 |
fn=flip_text,
|
@@ -61,11 +67,6 @@ iface = gr.Interface(
|
|
61 |
|
62 |
error_message = ""
|
63 |
|
64 |
-
def greet(name):
|
65 |
-
return "Hello " + name + "!"
|
66 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
67 |
-
|
68 |
-
|
69 |
try:
|
70 |
iface.launch()
|
71 |
except Exception as e:
|
|
|
42 |
return page.text, f"--- An error occurred while processing the request: {e} ---", num_tokens
|
43 |
return page.text, "--- Max number of tokens ---", num_tokens
|
44 |
|
45 |
+
|
46 |
+
def greet(name):
|
47 |
+
return "Hello " + name + "!"
|
48 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
49 |
+
|
50 |
+
|
51 |
# define the gradio interface
|
52 |
iface = gr.Interface(
|
53 |
fn=flip_text,
|
|
|
67 |
|
68 |
error_message = ""
|
69 |
|
|
|
|
|
|
|
|
|
|
|
70 |
try:
|
71 |
iface.launch()
|
72 |
except Exception as e:
|