Fixed iface
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def get_topic_value(row, i):
|
|
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,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()
|