MarMont commited on
Commit
066410e
1 Parent(s): ddc29c8

Fixed iface

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,7 +130,7 @@ def get_topic_value(row, i):
130
 
131
  df = pd.DataFrame()
132
 
133
- def dataframeProcessing(dataset):
134
  # Opening JSON file
135
  f = open('stopwords-tl.json')
136
  tlStopwords = json.loads(f.read())
@@ -341,5 +341,5 @@ def dataframeProcessing(dataset):
341
  def greet(name):
342
  return "Hello " + name + "!!"
343
 
344
- iface = gr.Interface(fn=dataframeProcessing, outputs=gr.Dataframe(headers=['original_tweets', 'max_topic']))
345
  iface.launch()
 
130
 
131
  df = pd.DataFrame()
132
 
133
+ def dataframeProcessing():
134
  # Opening JSON file
135
  f = open('stopwords-tl.json')
136
  tlStopwords = json.loads(f.read())
 
341
  def greet(name):
342
  return "Hello " + name + "!!"
343
 
344
+ iface = gr.Interface(fn=dataframeProcessing, inputs="text", outputs=gr.Dataframe(headers=['original_tweets', 'max_topic']))
345
  iface.launch()