mss3d commited on
Commit
17dc727
·
verified ·
1 Parent(s): 2736cdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -16,12 +16,12 @@ from joblib import load
16
  import pickle
17
  import gradio as gr
18
  #import Github
19
- #import github
20
- #from github import Github
21
 
22
- #g = Github('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')
23
 
24
- #repo = g.get_repo('mss3d2008/Chat_MIA')
25
 
26
 
27
  file_path = "dialogs.csv"
@@ -208,8 +208,8 @@ def chat_interface(prompt, score, correct_response):
208
 
209
  # Save the updated DataFrame to a new file
210
  df.to_csv('dialogs.csv', index=False)
211
- #repo.create_file('dialogs.csv', 'upload csv', data, branch='main')
212
- #repo.create_file('dialogs.txt', 'upload txt', data, branch='main')
213
 
214
  return Logical_response,Creative_response
215
 
 
16
  import pickle
17
  import gradio as gr
18
  #import Github
19
+ import github
20
+ from github import Github
21
 
22
+ g = Github('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')
23
 
24
+ repo = g.get_repo('mss3d2008/Chat_MIA')
25
 
26
 
27
  file_path = "dialogs.csv"
 
208
 
209
  # Save the updated DataFrame to a new file
210
  df.to_csv('dialogs.csv', index=False)
211
+ repo.create_file('dialogs.csv', 'upload csv', data, branch='main')
212
+ repo.create_file('dialogs.txt', 'upload txt', data, branch='main')
213
 
214
  return Logical_response,Creative_response
215