Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Allow server start without field-names. #1523

Merged
merged 4 commits into from Jul 30, 2018

Conversation

HarshTrivedi
Copy link
Contributor

@HarshTrivedi HarshTrivedi commented Jul 24, 2018

As far as I understand, there are three ways of using simple server:

  1. field-names are passed and it generates barebone html with those field names to be used in demo.
  2. static-dir is passed then field-name is not required. The static html should have the required field-names as input fields.
  3. Use react based front-end (link). Neither static-dir, nor field-name is required.

Except use-case (1), field-name argument should not be required. I am using (3) and I couldn't start text-in/text-out service on without passing some field-name which would in fact get ignored.

Edit1: WIP
Edit2: Seems OK now.

@HarshTrivedi
Copy link
Contributor Author

@joelgrus can you review this pr?

@joelgrus joelgrus self-assigned this Jul 26, 2018
@schmmd
Copy link
Member

schmmd commented Jul 30, 2018

@joelgrus would you merge this PR down?

@joelgrus joelgrus merged commit 2154e72 into allenai:master Jul 30, 2018
@HarshTrivedi HarshTrivedi deleted the demo-field-names-fix branch July 30, 2018 16:26
gabrielStanovsky pushed a commit to gabrielStanovsky/allennlp that referenced this pull request Sep 7, 2018
* Allow server start without field-names.

* Allow server to turn ON w/o field-name, static_dir

* Fix a typo.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants