File size: 382 Bytes
8e0affa
5748770
8e0affa
 
5748770
8e0affa
5748770
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8e0affa
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
import gradio as gr
import wikipedia

def greet(name):
    return "Hello " + name.orig_name + "!!"


def get_ocr():
    return ''


def search_wiki(text):
    return wikipedia.search(text)


def get_wiki(search_term):
    return wikipedia.summary(search_term)[0]


def inference(file):
    get_ocr()



iface = gr.Interface(fn=get_wiki, inputs="text", outputs="text")
iface.launch()