Spaces:
Sleeping
Sleeping
raphael825
commited on
Commit
·
e926088
1
Parent(s):
60c2359
Make the Model.py
Browse files
Model.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import json
|
3 |
+
|
4 |
+
|
5 |
+
def get_title(link):
|
6 |
+
with open("book.json", "r", encoding='utf-8') as read_file:
|
7 |
+
test = json.load(read_file)
|
8 |
+
title = test[0]['item'][0]['title']
|
9 |
+
return link + title
|
10 |
+
|
11 |
+
|
12 |
+
def greet(link):
|
13 |
+
return link
|