nicholasKluge commited on
Commit
44859a9
1 Parent(s): 78d910a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -1,20 +1,10 @@
1
  from statistics import mode
2
- import urllib.request
3
  import gradio as gr
4
- import subprocess
5
  import unidecode
6
  import requests
7
  import string
8
  import json
9
 
10
-
11
- # Download files using wget
12
- keys_url = "https://github.com/Nkluge-correa/Aira/raw/master/Aira-1/data/generated_data/keys_en.json"
13
- answers_url = "https://github.com/Nkluge-correa/Aira/raw/master/Aira-1/data/original_data/answers_en.txt"
14
-
15
- subprocess.run(["wget", keys_url, "-O", "keys_en.json"])
16
- subprocess.run(["wget", answers_url, "-O", "answers_en.txt"])
17
-
18
  # Load data from files
19
  with open('answers_en.txt', encoding='utf-8') as fp:
20
  answers = [line.strip() for line in fp]
@@ -137,7 +127,7 @@ head = (
137
 
138
  ref = (
139
  "<center>"
140
- "To see its full version (ML style) of this bot, go to <a href='https://playground.airespucrs.org/aira'>this link</a>."
141
  "</center>")
142
 
143
  # create a chat interface
 
1
  from statistics import mode
 
2
  import gradio as gr
 
3
  import unidecode
4
  import requests
5
  import string
6
  import json
7
 
 
 
 
 
 
 
 
 
8
  # Load data from files
9
  with open('answers_en.txt', encoding='utf-8') as fp:
10
  answers = [line.strip() for line in fp]
 
127
 
128
  ref = (
129
  "<center>"
130
+ "To see its full version (ML style) of this bot, go to <a href='https://nkluge-correa.github.io/Aira/'>this link</a>."
131
  "</center>")
132
 
133
  # create a chat interface