Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,9 +89,9 @@ def get_conversation():
|
|
| 89 |
if row is None:
|
| 90 |
return "No valid conversation available.", "No valid conversation available."
|
| 91 |
else:
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
return
|
| 95 |
|
| 96 |
# Gradio 인터페이스 생성 (왼쪽: Human Message, 오른쪽: AI Message)
|
| 97 |
with gr.Blocks() as demo:
|
|
@@ -100,6 +100,6 @@ with gr.Blocks() as demo:
|
|
| 100 |
conversation_1 = gr.Textbox(label="Conversation1", lines=10, interactive=False)
|
| 101 |
conversation_2 = gr.Textbox(label="Conversation2", lines=10, interactive=False)
|
| 102 |
generate_btn = gr.Button("Generate Conversation")
|
| 103 |
-
generate_btn.click(fn=get_conversation, inputs=[], outputs=[
|
| 104 |
|
| 105 |
demo.launch()
|
|
|
|
| 89 |
if row is None:
|
| 90 |
return "No valid conversation available.", "No valid conversation available."
|
| 91 |
else:
|
| 92 |
+
conversation_1 = row1['text']
|
| 93 |
+
conversation_2 = row2['text']
|
| 94 |
+
return conversation_1, conversation_2
|
| 95 |
|
| 96 |
# Gradio 인터페이스 생성 (왼쪽: Human Message, 오른쪽: AI Message)
|
| 97 |
with gr.Blocks() as demo:
|
|
|
|
| 100 |
conversation_1 = gr.Textbox(label="Conversation1", lines=10, interactive=False)
|
| 101 |
conversation_2 = gr.Textbox(label="Conversation2", lines=10, interactive=False)
|
| 102 |
generate_btn = gr.Button("Generate Conversation")
|
| 103 |
+
generate_btn.click(fn=get_conversation, inputs=[], outputs=[conversation_1, conversation_2])
|
| 104 |
|
| 105 |
demo.launch()
|