Spaces:
Running
Running
update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from inference import run_inference
|
|
|
3 |
from webtest_prompt import build_webtest_prompt
|
4 |
|
|
|
5 |
# Web Test UI 호출 함수
|
6 |
def gradio_infer(npc_id, npc_location, player_utt):
|
7 |
prompt = build_webtest_prompt(npc_id, npc_location, player_utt)
|
@@ -46,5 +48,7 @@ with gr.Blocks() as demo:
|
|
46 |
api_name="ping"
|
47 |
)
|
48 |
|
|
|
49 |
if __name__ == "__main__":
|
|
|
50 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
1 |
import gradio as gr
|
2 |
from inference import run_inference
|
3 |
+
from modules.ui_components import build_ui
|
4 |
from webtest_prompt import build_webtest_prompt
|
5 |
|
6 |
+
|
7 |
# Web Test UI 호출 함수
|
8 |
def gradio_infer(npc_id, npc_location, player_utt):
|
9 |
prompt = build_webtest_prompt(npc_id, npc_location, player_utt)
|
|
|
48 |
api_name="ping"
|
49 |
)
|
50 |
|
51 |
+
|
52 |
if __name__ == "__main__":
|
53 |
+
demo = build_ui()
|
54 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|