prasanth345's picture
Create backend/app.py
7b8ebe7 verified
raw
history blame
596 Bytes
from flask import Flask, render_template
import gradio as gr
app = Flask(__name__)
def chatbot_ai(input_text):
# Example AI response (modify with your own model)
response = f"AI: You said: {input_text}. How can I help you?"
return response
def voice_ai(voice_input):
# Simulating text from voice input (use Speech Recognition or other APIs for real-time)
response = f"AI (Voice): You said: {voice_input}. How can I assist you?"
return response
@app.route('/')
def index():
return render_template('chatbot.html')
if __name__ == '__main__':
app.run(debug=True)