Rocky080808 commited on
Commit
bcd9a8d
·
verified ·
1 Parent(s): 3084348

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -43
app.py CHANGED
@@ -5,49 +5,6 @@ import streamlit as st
5
  from transformers import pipeline
6
  from langdetect import detect
7
 
8
- import streamlit as st
9
- from transformers import pipeline
10
- from langdetect import detect
11
-
12
- # 定义自定义的CSS样式
13
- st.markdown("""
14
- <style>
15
- .main {
16
-
17
- font-family: 'Arial', sans-serif;
18
- }
19
- h1 {
20
- color: #333333;
21
- font-size: 36px;
22
- font-weight: bold;
23
- text-align: center;
24
- margin-top: 20px;
25
- }
26
- .stButton button {
27
- background-color: #4CAF50;
28
- color: white;
29
- font-size: 16px;
30
- padding: 10px 24px;
31
- border-radius: 8px;
32
- border: none;
33
- margin-top: 20px;
34
- }
35
- .stTextInput input {
36
- font-size: 16px;
37
- padding: 10px;
38
- border: 2px solid #ccc;
39
- border-radius: 8px;
40
- margin-bottom: 20px;
41
- }
42
- .stMarkdown, .stTextInput {
43
- font-size: 18px;
44
- color: #333333;
45
- }
46
- .stTextInput {
47
- padding: 20px;
48
- }
49
- </style>
50
- """, unsafe_allow_html=True)
51
 
52
  # 继续应用的主逻辑
53
  # 加载翻译pipeline、加载情感分析pipeline、定义语言映射
 
5
  from transformers import pipeline
6
  from langdetect import detect
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  # 继续应用的主逻辑
10
  # 加载翻译pipeline、加载情感分析pipeline、定义语言映射