Spaces:
Sleeping
Sleeping
Update app.py
Browse files7 unmodified lines89101112131414 unmodified lines2930313233343536373839404 unmodified lines454647484950515253547 unmodified linesloop = asyncio.get_event_loop()gradio_client = GrClient('https://3a7ac6c7a5dbd4e9ac.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):result = gradio_client.predict(x,# str representing input in 'User input' Textbox component50,id,fn_index=0)result = str(result)4 unmodified linescount = 0aa = gr.Interface(fn=chat,inputs=["text","text"],outputs="text",description="chat",examples= [[f"λλ κΏμ΄ λμΌ?", "771171"],[f"λλ λ¬΄μ¨ μμ κ°μ₯ μ’μν΄?", "772122"]])demo.queue(max_size=32).launch(enable_queue=True)7 unmodified lines89101112131414 unmodified lines293031323334353637383940414 unmodified lines464748495051525354557 unmodified linesloop = asyncio.get_event_loop()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, url):result = gradio_client.predict(x,# str representing input in 'User input' Textbox component50,id,url,fn_index=0)result = str(result)4 unmodified linescount = 0aa = gr.Interface(fn=chat,inputs=["text","text", "text"],outputs="text",description="chat",examples= [[f"λλ κΏμ΄ λμΌ?", "771171", ""],[f"λλ λ¬΄μ¨ μμ κ°μ₯ μ’μν΄?", "772122", ""]])demo.queue(max_size=32).launch(enable_queue=True)
app.py+5-4