Spaces:
Runtime error
Runtime error
import gradio as gr | |
import os | |
import gradio as gr | |
from gradio import ChatInterface | |
import time | |
def echo(text, text2, request: gr.Request): | |
if request: | |
print("Request headers dictionary:", request.headers) | |
print("IP address:", request.client.host) | |
print("Query parameters:", dict(request.query_params)) | |
print(text,text2) | |
return text+text2 | |
demo = gr.Interface( | |
echo, | |
[ | |
"textbox", | |
"textbox" | |
] | |
) | |
demo.launch() |