Commit
·
4919dd7
1
Parent(s):
ff41237
Update app.py
Browse files
app.py
CHANGED
@@ -48,6 +48,13 @@ class ChatWrapper:
|
|
48 |
return history, history
|
49 |
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
def my_inference_function(name):
|
52 |
return "Hello " + name + "!"
|
53 |
|
@@ -59,12 +66,5 @@ gradio_interface = gr.Interface(
|
|
59 |
gradio_interface.launch()
|
60 |
|
61 |
|
62 |
-
def echo(name, request: gr.Request):
|
63 |
-
if request:
|
64 |
-
print("Request headers dictionary:", request.headers)
|
65 |
-
print("IP address:", request.client.host)
|
66 |
-
print("Body", request.body)
|
67 |
-
return name
|
68 |
|
69 |
|
70 |
-
block.launch(debug=True)
|
|
|
48 |
return history, history
|
49 |
|
50 |
|
51 |
+
def echo(name, request: gr.Request):
|
52 |
+
if request:
|
53 |
+
print("Request headers dictionary:", request.headers)
|
54 |
+
print("IP address:", request.client.host)
|
55 |
+
print("Body", request.body)
|
56 |
+
return name
|
57 |
+
|
58 |
def my_inference_function(name):
|
59 |
return "Hello " + name + "!"
|
60 |
|
|
|
66 |
gradio_interface.launch()
|
67 |
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
|
70 |
|
|