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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -89,7 +89,9 @@ def get_conversation():
89
  if row is None:
90
  return "No valid conversation available.", "No valid conversation available."
91
  else:
92
- return row1['text'], row2['text']
 
 
93
 
94
  # Gradio 인터페이스 생성 (왼쪽: Human Message, 오른쪽: AI Message)
95
  with gr.Blocks() as demo:
@@ -98,6 +100,6 @@ with gr.Blocks() as demo:
98
  conversation_1 = gr.Textbox(label="Conversation1", lines=10, interactive=False)
99
  conversation_2 = gr.Textbox(label="Conversation2", lines=10, interactive=False)
100
  generate_btn = gr.Button("Generate Conversation")
101
- generate_btn.click(fn=get_conversation, inputs=[], outputs=[human_text, ai_text])
102
 
103
  demo.launch()
 
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
  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()