gaeunseo commited on
Commit
1363d3d
·
verified ·
1 Parent(s): de3859a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- text_1 = row1['text']
93
- text_2 = row2['text']
94
- return text_1, text_2
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=[text_1, text_2])
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()