Weather-App / app.py
kayyshf's picture
created app.py
6fd502a verified
raw
history blame contribute delete
468 Bytes
import gradio as gr
import requests
import json
from findCity import find_city
from findWeather import find_weather
from finalOutput import final_output
# Create the Gradio interface
def chatbot(query):
city = find_city(query)
weather_data, output = find_weather(city)
output2 = final_output(query, weather_data)
output3 = output + output2
return output3
gr.Interface(fn=chatbot, inputs="text", outputs="text", title="Weather Chatbot").launch()