File size: 282 Bytes
42472b3
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import wikipedia
import gradio as gr
def ai_text(input):
  value = wikipedia.summary(input)
  print(type(value))
  return value
iface = gr.Interface(fn = ai_text, inputs="text",outputs="text",title= "Answer Generator", description= "AI Generated Answer" )
iface.launch(debug=False)