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
OpenDAS
Megatron-LM
Commits
7bdeb1e7
Commit
7bdeb1e7
authored
Sep 20, 2021
by
rprenger
Browse files
Fixing the URL for the web interface
parent
69757f9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
megatron/text_generation_server.py
megatron/text_generation_server.py
+1
-1
No files found.
megatron/text_generation_server.py
View file @
7bdeb1e7
...
@@ -82,7 +82,7 @@ class MegatronGenerate(Resource):
...
@@ -82,7 +82,7 @@ class MegatronGenerate(Resource):
class
MegatronServer
(
object
):
class
MegatronServer
(
object
):
def
__init__
(
self
,
model
):
def
__init__
(
self
,
model
):
self
.
app
=
Flask
(
__name__
)
self
.
app
=
Flask
(
__name__
,
static_url_path
=
''
)
api
=
Api
(
self
.
app
)
api
=
Api
(
self
.
app
)
api
.
add_resource
(
MegatronGenerate
,
'/generate'
,
resource_class_args
=
[
model
])
api
.
add_resource
(
MegatronGenerate
,
'/generate'
,
resource_class_args
=
[
model
])
...
...
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