wasmdashai commited on
Commit
4cc64ba
1 Parent(s): 167ff63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +87 -1
app.py CHANGED
@@ -19,7 +19,63 @@ model_choices = gr.Dropdown(
19
 
20
 
21
  import gradio as gr
22
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  def t2t(text, namn_model):
24
  if namn_model == "Group":
25
  out = ASGAI.Group.predictAPI(text)
@@ -44,7 +100,37 @@ def echo(message, history):
44
 
45
  # Use Blocks
46
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  with gr.Row():
 
 
48
  with gr.Tab("Thread Base"):
49
  gr.Markdown("### Thread Base")
50
  with gr.Row():
 
19
 
20
 
21
  import gradio as gr
22
+ def home_page():
23
+ return """
24
+ <div class="px-4 py-5 my-5 text-center">
25
+ <img class="d-block mx-auto mb-4" src="/docs/5.0/assets/brand/bootstrap-logo.svg" alt="" width="72" height="57">
26
+ <h1 class="display-5 fw-bold">مرحباً بك في Model AI ASG
27
+ </h1>
28
+ <div class="col-lg-6 mx-auto">
29
+ <p class="lead mb-4">
30
+ Wasm-Speeker We provide models that help to aid in the creation of different attack sequences. You can deal with AGS models by choosing the model you want. We provide models that help to aid in the creation of different attack sequences. You can deal with AGS models by choosing the model you want. </p>
31
+ <div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
32
+ <button type="button" class="btn btn-primary btn-lg px-4 gap-3">Primary button</button>
33
+ <button type="button" class="btn btn-outline-secondary btn-lg px-4">Secondary</button>
34
+ </div>
35
+ </div>
36
+ </div>
37
+
38
+ <div class="container col-xxl-8 px-4 py-5">
39
+ <div class="row flex-lg-row-reverse align-items-center g-5 py-5">
40
+ <div class="col-10 col-sm-8 col-lg-6">
41
+ <img src="bootstrap-themes.png" class="d-block mx-lg-auto img-fluid" alt="Bootstrap Themes" width="700" height="500" loading="lazy">
42
+ </div>
43
+ <div class="col-lg-6">
44
+ <h1 class="display-5 fw-bold lh-1 mb-3">Responsive left-aligned hero with image</h1>
45
+ <p class="lead">Quickly design and customize responsive mobile-first sites with Bootstrap, the world’s most popular front-end open source toolkit, featuring Sass variables and mixins, responsive grid system, extensive prebuilt components, and powerful JavaScript plugins.</p>
46
+ <div class="d-grid gap-2 d-md-flex justify-content-md-start">
47
+ <button type="button" class="btn btn-primary btn-lg px-4 me-md-2">Primary</button>
48
+ <button type="button" class="btn btn-outline-secondary btn-lg px-4">Default</button>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg">
54
+ <div class="col-lg-7 p-3 p-lg-5 pt-lg-3">
55
+ <h1 class="display-4 fw-bold lh-1">Border hero with cropped image and shadows</h1>
56
+ <p class="lead">Quickly design and customize responsive mobile-first sites with Bootstrap, the world’s most popular front-end open source toolkit, featuring Sass variables and mixins, responsive grid system, extensive prebuilt components, and powerful JavaScript plugins.</p>
57
+ <div class="d-grid gap-2 d-md-flex justify-content-md-start mb-4 mb-lg-3">
58
+ <button type="button" class="btn btn-primary btn-lg px-4 me-md-2 fw-bold">Primary</button>
59
+ <button type="button" class="btn btn-outline-secondary btn-lg px-4">Default</button>
60
+ </div>
61
+ </div>
62
+ <div class="col-lg-4 offset-lg-1 p-0 overflow-hidden shadow-lg">
63
+ <img class="rounded-lg-3" src="bootstrap-docs.png" alt="" width="720">
64
+ </div>
65
+ </div>
66
+ <div class="bg-dark text-secondary px-4 py-5 text-center">
67
+ <div >
68
+ <h1 class="display-5 fw-bold text-white">Dark mode hero</h1>
69
+ <div class="col-lg-6 mx-auto">
70
+ <p class="fs-5 mb-4">Quickly design and customize responsive mobile-first sites with Bootstrap, the world’s most popular front-end open source toolkit, featuring Sass variables and mixins, responsive grid system, extensive prebuilt components, and powerful JavaScript plugins.</p>
71
+ <div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
72
+ <button type="button" class="btn btn-outline-info btn-lg px-4 me-sm-3 fw-bold">Custom button</button>
73
+ <button type="button" class="btn btn-outline-light btn-lg px-4">Secondary</button>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ """
79
  def t2t(text, namn_model):
80
  if namn_model == "Group":
81
  out = ASGAI.Group.predictAPI(text)
 
100
 
101
  # Use Blocks
102
  with gr.Blocks() as demo:
103
+ gr.HTML("""
104
+ <head>
105
+ <!-- Required meta tags -->
106
+ <meta charset="utf-8">
107
+ <meta name="viewport" content="width=device-width, initial-scale=1">
108
+
109
+ <!-- Bootstrap CSS -->
110
+ <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
111
+ integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
112
+
113
+ <title> Model AI ASG</title>
114
+ </head>
115
+ """)
116
+
117
+ # العنوان الرئيسي
118
+ gr.Markdown("# Model AI ASG")
119
+
120
+
121
+ # عرض الصورة الترحيبية
122
+ gr.Image("icon (1).jpg", label="Model AI ASG")
123
+ gr.HTML("""
124
+ <style>
125
+ .gradio-tabs {
126
+ direction: rtl;
127
+ }
128
+ </style>
129
+ """)
130
+
131
  with gr.Row():
132
+ with gr.Tab("Home"):
133
+ gr.HTML(home_page())
134
  with gr.Tab("Thread Base"):
135
  gr.Markdown("### Thread Base")
136
  with gr.Row():