Spaces:
Sleeping
Sleeping
Update app.py
Browse files7 unmodified lines8910111112131414 unmodified lines29303132323334353637383940414 unmodified lines4647484849505151525354557 unmodified lines
loop = asyncio.get_event_loop()gradio_client = GrClient('https://3a7ac6c7a5dbd4e9ac.gradio.live/')gradio_client = GrClient('https://09d0a26c46adbc5587.gradio.live/')# Monkey patchdef get_types(cls_set: List[Type], component: str): docset = []14 unmodified linesroutes.get_types = get_types
# App codedef chat(x, id): def chat(x, id, url): result = gradio_client.predict( x, # str representing input in 'User input' Textbox component 50, id, url, fn_index=0 ) result = str(result)4 unmodified lines count = 0 aa = gr.Interface( fn=chat, inputs=["text","text"], inputs=["text","text", "text"], outputs="text", description="chat", examples= [[f"๋๋ ๊ฟ์ด ๋ญ์ผ?", "771171"],[f"๋๋ ๋ฌด์จ ์์ ๊ฐ์ฅ ์ข์ํด?", "772122"]] examples= [[f"๋๋ ๊ฟ์ด ๋ญ์ผ?", "771171", ""],[f"๋๋ ๋ฌด์จ ์์ ๊ฐ์ฅ ์ข์ํด?", "772122", ""]] )
demo.queue(max_size=32).launch(enable_queue=True) app.py+5-4