Spaces:
Runtime error
Runtime error
File size: 844 Bytes
a5d3830 7627550 a5d3830 7627550 a5d3830 01b040c 7627550 01b040c a5d3830 06a5ab5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
import gradio as gr
from conversation import make_conversation
import random
import time
global USERNAME
global PASSWORD
global INPUT
global OUTPUT
global SOURCE
global DOCS
# def auth_function(username, password):
# USERNAME = username
# user_name = username
# return username == password
# def make_conversation(message, history):
# INPUT = message
# text_, source, docs = run(message)
# OUTPUT = text_
# SOURCE = source
# DOCS = docs
# # print("INPUT: ", INPUT)
# # print("OUTPUT: ", OUTPUT)
# # print("SOURCE: ", SOURCE)
# # print("DOCS: ", DOCS)
# for i in range(len(text_)):
# time.sleep(0.001)
# yield text_[: i+1]
with gr.Blocks(css="style.css") as demo:
gr.Markdown("""
# Dr. V AI
""")
gr.ChatInterface(make_conversation).queue()
demo.launch() |