Spaces:
Runtime error
Runtime error
File size: 585 Bytes
ff74699 d32eca6 ff74699 a694c72 ff74699 a694c72 ff74699 d32eca6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import gradio as gr
import os
import openai
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))
return text+text2
interface = gr.ChatInterface(echo)
with gr.Blocks() as demo:
gr.Markdown("""
# Just a test...
""")
with gr.Row(visible=False):
interface.render()
demo.queue(concurrency_count=100).launch() |