File size: 258 Bytes
e926088
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr
import json


def get_title(link):
    with open("book.json", "r", encoding='utf-8') as read_file:
        test = json.load(read_file)
        title = test[0]['item'][0]['title']
    return link + title


def greet(link):
    return link