Spaces:
Build error
Build error
Commit
·
bfe9080
1
Parent(s):
68040ae
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ import gradio as gr
|
|
16 |
|
17 |
def greet(name):
|
18 |
|
19 |
-
|
20 |
|
21 |
app = Flask(__name__)
|
22 |
CORS(app)
|
@@ -69,10 +69,11 @@ def greet(name):
|
|
69 |
print("--> DALL-E Server is up and running!")
|
70 |
print(f"--> Model selected - DALL-E {args.model_version}")
|
71 |
|
|
|
72 |
|
73 |
if __name__ == "__main__":
|
74 |
app.run(host="0.0.0.0", port=args.port, debug=False)
|
75 |
|
76 |
-
|
77 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
78 |
iface.launch()
|
|
|
16 |
|
17 |
def greet(name):
|
18 |
|
19 |
+
|
20 |
|
21 |
app = Flask(__name__)
|
22 |
CORS(app)
|
|
|
69 |
print("--> DALL-E Server is up and running!")
|
70 |
print(f"--> Model selected - DALL-E {args.model_version}")
|
71 |
|
72 |
+
|
73 |
|
74 |
if __name__ == "__main__":
|
75 |
app.run(host="0.0.0.0", port=args.port, debug=False)
|
76 |
|
77 |
+
return "Hello " + name + "!!"
|
78 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
79 |
iface.launch()
|