Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zhougaofeng
internlm2-math-7B
Commits
a92ad34e
"ppstructure/vqa/vaq_utils.py" did not exist on "5c6f90d6f7f2d356546daafb0d558d6c467079fc"
Commit
a92ad34e
authored
Jun 11, 2024
by
zhougaofeng
Browse files
Upload New File
parent
d6ab59c8
Pipeline
#1112
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/webui.py
src/webui.py
+13
-0
No files found.
src/webui.py
0 → 100644
View file @
a92ad34e
import
os
from
llamafactory.webui.interface
import
create_ui
def
main
():
gradio_share
=
os
.
environ
.
get
(
"GRADIO_SHARE"
,
"0"
).
lower
()
in
[
"true"
,
"1"
]
server_name
=
os
.
environ
.
get
(
"GRADIO_SERVER_NAME"
,
"0.0.0.0"
)
create_ui
().
queue
().
launch
(
share
=
gradio_share
,
server_name
=
server_name
,
inbrowser
=
True
)
if
__name__
==
"__main__"
:
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment