shigeru saito commited on
Commit
4f94063
1 Parent(s): 71e2d25

不要コード削除

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -26,13 +26,6 @@ if llm.assistant.description is None:
26
  else:
27
  description = llm.assistant.description
28
 
29
- # 実行例のリスト (現在使用してない)
30
- import csv
31
- examples = []
32
- with open('flagged/log.csv', 'r', encoding='utf-8') as file:
33
- reader = csv.DictReader(file)
34
- examples = [row['prompt'] for row in reader]
35
-
36
  with gr.Blocks() as demo:
37
  gr.Markdown(
38
  f"""
@@ -43,7 +36,6 @@ with gr.Blocks() as demo:
43
  chatbot = gr.Chatbot()
44
  msg = gr.Textbox()
45
  clear = gr.ClearButton([msg, chatbot])
46
- examples=examples
47
 
48
  msg.submit(respond, [msg, chatbot], [msg, chatbot])
49
 
 
26
  else:
27
  description = llm.assistant.description
28
 
 
 
 
 
 
 
 
29
  with gr.Blocks() as demo:
30
  gr.Markdown(
31
  f"""
 
36
  chatbot = gr.Chatbot()
37
  msg = gr.Textbox()
38
  clear = gr.ClearButton([msg, chatbot])
 
39
 
40
  msg.submit(respond, [msg, chatbot], [msg, chatbot])
41